package org.dromara.hmily.demo.springcloud.inventory.exception;

import lombok.Data;

@Data
public class MySelfRuntimeException extends RuntimeException {
    private String statusCode;
    private String statusReason;


    public MySelfRuntimeException() {
        this("500", "系统异常");

    }

    public MySelfRuntimeException(String message) {
        this("500", message);
    }

    public MySelfRuntimeException(String statusCode, String statusReason) {
        this.statusCode = statusCode ;
        this.statusReason = statusReason ;
    }


    @Override
    public String getMessage() {
        return statusReason;
    }
}